Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

supports-hyperlinks

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

supports-hyperlinks

Detect if your terminal emulator supports hyperlinks

  • 2.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
20M
increased by9.29%
Maintainers
3
Weekly downloads
 
Created

What is supports-hyperlinks?

The supports-hyperlinks npm package is used to check if the terminal environment supports hyperlinks. This is useful for developers who want to include clickable links in their terminal applications, but need to ensure compatibility with the user's terminal emulator.

What are supports-hyperlinks's main functionalities?

Checking if hyperlinks are supported

This feature allows you to check if the standard output (stdout) and standard error (stderr) streams of the terminal support hyperlinks. The package exports an object with two properties: stdout and stderr, which are booleans indicating support.

const supportsHyperlinks = require('supports-hyperlinks');

if (supportsHyperlinks.stdout) {
  console.log('Terminal supports hyperlinks');
} else {
  console.log('Terminal does not support hyperlinks');
}

if (supportsHyperlinks.stderr) {
  console.log('Stderr supports hyperlinks');
}

Other packages similar to supports-hyperlinks

Keywords

FAQs

Package last updated on 06 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc